<?php

namespace Application\Model;

use Zend\Form\Annotation;

/**
 * @Annotation\Name("Agence")
 * @Annotation\Hydrator("Zend\Stdlib\Hydrator\ObjectProperty")
 */
class Agence {
	/**
	 * @Annotation\Exclude()
	 */
	public $id;
	public $libelle;
	public $ville;
	public $phone;
	public $fax;
	public $mail;
	public $adresse;/*  METTRE AU FORMAT TEXT */
	public $codePostal;
	public $pays;/*  NOUVEAU CHAMP  */
	public $imageUrl;
	
	public function exchangeArray($data)
	{
		$this->id = (isset($data['id'])) ? $data['id'] : null;
		$this->libelle = (isset($data['libelle'])) ? $data['libelle'] : null;
		$this->phone = (isset($data['phone'])) ? $data['phone'] : null;
		$this->fax = (isset($data['fax'])) ? $data['fax'] : null;
		$this->mail = (isset($data['mail'])) ? $data['mail'] : null;
		$this->adresse = (isset($data['adresse'])) ? $data['adresse'] : null;
		$this->codePostal = (isset($data['codePostal'])) ? $data['codePostal'] : null;
		$this->ville = (isset($data['ville'])) ? $data['ville'] : null;
		$this->pays = (isset($data['pays'])) ? $data['pays'] : null;
		$this->imageUrl = (isset($data['imageUrl'])) ? $data['imageUrl'] : null;
	}
}
